<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="_Error.jsp"%>
<%
	String path = request.getContextPath();//获取项目名称
%>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="./assets/css/layui.css">
    <link rel="stylesheet" href="./assets/css/admin.css">
    <link rel="icon" href="/favicon.ico">
    <title>管理后台</title>
    <%-- 判断uName是否存在，如何不存在则证明非登录操作，跳转至登录页面 --%>
	 <%  if (session.getAttribute("user_name") == null ) {%>
	 <jsp:forward page="Login.jsp" ></jsp:forward>
	 <% } %>
</head>
<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header custom-header">            
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item slide-sidebar" lay-unselect>
                    <a href="javascript:;" class="icon-font"><i class="ai ai-menufold"></i></a>
                </li>               
            </ul>
			<p class="datexians">智能化停车场管理系统</p>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">admin</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<%=path %>/Common/ChagePwd.jsp" target="mainFrame">>修改密码</a></dd>
                        <dd><a href="<%=path %>/Common/UserInfo.jsp" target="mainFrame">>用户信息</a></dd>
                        <dd><a href="<%=path %>/Common/Logout.jsp" target="mainFrame">>退出系统</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="layui-side custom-admin">
            <div class="layui-side-scroll">
                <div class="custom-logo">
                    <img src="https://img-blog.csdnimg.cn/20210623140350875.png" alt=""/>                    
                    <h1>停车场管理系统</h1>
                </div>
                <ul id="Nav" class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item" >
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe665;</i>
                            <em>系统信息管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="<%=path %>/Admin/RoleAdd.jsp">添加角色信息</a></dd>
                            <dd><a href="<%=path %>/RoleHandle?type=4">管理角色信息</a></dd>
                            <dd><a href="<%=path %>/Admin/UserAdd.jsp">添加用户信息</a></dd>
                            <dd><a href="<%=path %>/UserHandle?type=4">管理用户信息</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe857;</i>
                            <em>车位信息管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="<%=path %>/Admin/SeatAdd.jsp">添加车位信息</a></dd>
                            <dd><a href="<%=path %>/SeatHandle?type=4" target="mainFrame">管理车位信息</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe663;</i>
                            <em>IC卡信息管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="<%=path %>/Admin/CardAdd.jsp">添加IC卡类型</a></dd>
                            <dd><a href="<%=path %>/CardHandle?type=4">管理IC卡类型</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe653;</i>
                            <em>固定车主停车管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="<%=path %>/FixedHandle?type=6">出入场设置</a></dd>
                            <dd><a href="<%=path %>/FixedHandle?type=4">停车信息管理</a></dd>
                 
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe653;</i>
                            <em>临时车辆停车管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="<%=path %>/Admin/TempAdd.jsp">车主入场信息</a></dd>
                            <dd><a href="<%=path %>/TempHandle?type=4" target="mainFrame">车主出场信息</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe631;</i>
                            <em>系统功能操作</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="<%=path %>/Common/ChagePwd.jsp">修改密码</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-body">
             <div class="layui-tab app-container" lay-allowClose="true" lay-filter="tabs">
                <ul id="appTabs" class="layui-tab-title custom-tab" style="display: none;"></ul>
                <div id="appTabPage" class="layui-tab-content"></div>
            </div>
        </div>
        <div class="mobile-mask"></div>
    </div>
    <script src="assets/layui.js"></script>
    <script src="index.js" data-main="home"></script>
</body>
</html>
